Programming a Quantum Annealing Machine